/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tv.global.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */

@Embeddable
public class ItemDescargaPK implements Serializable {

    private Integer id;
    private Integer nroitm;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getNroitm() {
        return nroitm;
    }

    public void setNroitm(Integer nroitm) {
        this.nroitm = nroitm;
    }


    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ItemDescargaPK other = (ItemDescargaPK) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        if (this.nroitm != other.nroitm && (this.nroitm == null || !this.nroitm.equals(other.nroitm))) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 59 * hash + (this.id != null ? this.id.hashCode() : 0);
        hash = 59 * hash + (this.nroitm != null ? this.nroitm.hashCode() : 0);
        return hash;
    }

    @Override
    public String toString() {
        return "ItemDescargaPK{" + "id=" + id + "nrotim=" + nroitm + '}';
    }
    
}
